package com.aso114.project.util;

import java.util.Map;

/**
 * username:Created by hsj on 2016/10/12 0012.
 * class：
 * 类描述：存放常量
 */

public class Constant {

    public static int COUNTDOWN = 60;

    // 需要修改的值（找老刘修改）
    public static String sign = "75369fcf375840b77e6621c7c4e740f9";
    public static String appkey = "100001";
    public static String CateId = "32";
    public static String SpecidlId = "1";//  章节练习用到的初始ID

    public static String[] titleType = {"行测", "申论"};
    public static String[] titleTypeNum = {"366", "367"};
    public static boolean isUserAreaId =true; // 是否有考区


    //  不需要修改的值
    public static int position = 0;
    public static String adutst = titleTypeNum[position];//
    public static String essay = titleTypeNum[position];//
    public static String vison = "1";
    public static boolean falg = false;
    public static String title_tv = "1";
    public static String title_type1 = "1";//1 考点练习  2 章节练习  3 真题模考  4 巩固练习 5考试成绩  6 练习历史 7 错题练习 8 收藏题 9 申论的 真题练习  10 申论的 收藏题  11 申论的 练习历史
    public static String title_type2 = "2";
    public static String title_type3 = "3";
    public static String title_type4 = "4";
    // 数据库文件目标存放路径为系统默认位置，com.droid 是你的包名
    public static String DB_PATH = "/data/data/com.aso114.demo/databases/";

    /**
     * 正则表达式：验证手机
     */
    public static final String REGEX_PHONE = "^[1][3-9][0-9]{9}$";


    public final static String YD_APP_CHANNEL = "123";

    public final static String YD_SDK_AUTH = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiJ3YnRlc3QxIiwibmlja25hbWUiOiJ3YiIsIm1vYmlsZSI6IiIsImFwcEtleSI6IjEyMyIsImF2YXRhciI6IiIsImV4dGVuZEluZm8iOiIiLCJpYXQiOjE1MzAxNTE1OTZ9.GErv67VXPgUhEfVQVfVpLGnE-fWVQTOGLxy0EDXNmwI";

    // 漫画测试
    public final static String MH_URL = "https://th5sdk.manhua.163.com";

    public final static String MH_APP_CHANNEL = "gtest";

    public final static String MH_SDK_AUTH = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiJ1c2VyaWQkMCIsIm5pY2tuYW1lIjoi5rWL6K-V55So5oi3MCIsIm1vYmlsZSI6IjExMjIzMzQ0IiwiYXBwS2V5IjoiNGkzd3N4ZHoiLCJvaWQiOiIiLCJhdmF0YXIiOiJodHRwczovL2Vhc3lyZWFkLm5vc2RuLjEyNy5uZXQvcGljLzIwMTYvMDgvMDEvZmYyODY5YWQwMjM5NGY5OThmMTkxMDkwN2FjNTYyNGUucG5nIiwiaWF0IjoxNTMxMjc1NTkyfQ.azBxCLbWU2Oo3hIMlaQurCFgqY8jUVWjuz8OdXij5u8";


    public final static String AppSecret = "asdfkhlfkanfasupoqre";

    public final static String app_key = "7GYpld47f";
    public final static String LOG_TAG = "Demo";

    public static boolean sIsAnonymous = true;

    public static String sYDSDKAuth;

    public static String sMHSDKAuth;


    // 阅读测试
//    public final static String YD_URL = "https://th5sdk.yuedu.163.com?_tdchannel=1ctpld1ui";

    //    public final static String App_KEY = "1ctpld1ui";//测试


    //    public final static String NATIVE_FUNCTION = "acedhgxaxmklfesqoivf";//测试
//    public final static String NATIVE_FUNCTION = "asdfkhlfkanfasupoqre";//正式


    public static String SDKAuth = "SD_KAUTH";
    public static String SHARE_APP_TAG = "SHARE_APP_TAG";

    //    public static final String APP_ID = "1106262919";
//    public static final String POSITION_ID = "2080137923952834";

    //    public static final String APP_ID = "1107707593";
//
//    public static final String VERSION_CODE = "1";
    public static final String APPKEY = "100022";
    public static final String si_gn = "00abf227ea28b6d616cb7c2d6153f7b3";


    // 阅读测试
//    public final static String YD_URL = "https://th5sdk.yuedu.163.com?_tdchannel=1ctpld1ui";
    public final static String YD_URL = "https://h5sdk.yuedu.163.com?_tdchannel=7GYpld47f";//正式

    //    public final static String App_KEY = "1ctpld1ui";//测试
    public final static String App_KEY = "7GYpld47f";//正式


    //    public final static String NATIVE_FUNCTION = "acedhgxaxmklfesqoivf";//测试
    public final static String NATIVE_FUNCTION = "asdfkhlfkanfasupoqre";//正式

    /**
     * 获取公共参数
     *
     * @param
     * @param
     * @return
     */
    public static Map<String, String> CommonData(Map<String, String> tMap, String v, String h, String f, String type, String appkey) {

        tMap.put("v", v);
        tMap.put("h", h);
        tMap.put("f", f);
        tMap.put("type", type);
        tMap.put("t", Helper.getStringDate());
        tMap.put("appkey", appkey);
        tMap.put("CateId", Constant.CateId);

        return tMap;
    }
}
